// logs.js
const util = require('../../utils/util.js')
const app = getApp()
Page({
  data: {
    logs: []
  },
  goindex() {
    wx.navigateTo({
      url: '../index/index',
    })
  },
  closeWindow() {
    //console.error(app.globalData)
    app.globalData.videoContext.videoContext.exitPictureInPicture();
  },
  onLoad() {
    /**this.setData({
      logs: (wx.getStorageSync('logs') || []).map(log => {
        return {
          date: util.formatTime(new Date(log)),
          timeStamp: log
        }
      })
    })**/
  }
})
